//package com.bwie.system.test;
//
//import com.bwie.common.domain.YouXiang;
//import com.bwie.system.mapper.YouXiangMapper;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.ApplicationArguments;
//import org.springframework.boot.ApplicationRunner;
//import org.springframework.data.redis.core.RedisTemplate;
//import org.springframework.stereotype.Component;
//import org.springframework.web.bind.annotation.CrossOrigin;
//
//import java.util.Date;
//import java.util.List;
//import java.util.concurrent.TimeUnit;
//
//@CrossOrigin
//@Component
//public class test   implements ApplicationRunner {
//
//
//
//    @Autowired
//    YouXiangMapper youXiangMapper;
//    @Autowired
//    RedisTemplate redisTemplate;
//    @Override
//    public void run(ApplicationArguments args) throws Exception {
//
//        YouXiang youXiang = new YouXiang();
//        List<YouXiang> xianglist = youXiangMapper.xianglist(youXiang);
//        redisTemplate.opsForList().rightPushAll("youxiang",xianglist);
//    }
//}
